Page({
  // 页面的初始数据
  data: {
  
      name:"",
      phone:"",
      provinceName:"",//省
      cityName:"",//市
      districtName:"",//区·
      address:"",//详细地址
      checked:false

  },

  bindRegionChange(e){
      console.log(e.detail.value[0])
      this.setData({
        provinceName:e.detail.value[0],
        cityName:e.detail.value[1],
        districtName:e.detail.value[2]
      })
  },
  onChange(){
      this.setData({
        checked:!this.data.checked
      })
  },
  // 保存收货地址
  save() {
      
  },
onLoad:function(options) {
  console.log(options)
  if(options.id){
    wx.setNavigationBarTitle({
      title: '修改收获地址'
    })
  }

},

  // 省市区选择
  onAddressChange(event) {}
})


